<div class="admin_left">
</div>

<div class="admin_right">
    <h1>Customers</h1>
    <?php
        echo $this->Form->create('Customer',array('action' => 'search'));
        echo $this->Form->input('keyword', array('label' => 'Search for'));
        echo $this->Form->end('Search');
    ?>

    <?php if ($isFound == '0'): ?>
        There are no results matched your query
    <?php else: ?>
        <table class="table table-striped table-bordered">
            <tr>
                <th>Id</th>
                <th>First name</th>
                <th>Last name</th>
                <th>Username</th>
            </tr>

        <!-- Here's where we loop through our $list array, printing out customers info -->

        <?php foreach ($list as $customer): ?>
            <tr>
                <td><?php echo $customer['Customer']['id']; ?></td>
                <td><?php echo $customer['Customer']['first_name']; ?></td>
                <td><?php echo $customer['Customer']['last_name']; ?></td>
                <td><?php echo $customer['Customer']['username']; ?></td>
            </tr>
        <?php endforeach; ?>
        </table>
    <?php endif; ?>
</div>